package com.example.mykotilin.room.persistence

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*

/**
 * 构建用户表
 */
@Entity(tableName = "users")
data class User(@PrimaryKey
                @ColumnInfo(name = "userid")
                val id:String = UUID.randomUUID().toString(),
                @ColumnInfo(name = "username")
                val userName : String

)